import generics.Point;
import org.junit.Test;

public class testGenerics {

    @Test
    public void testGen(){
        Point<Integer> integerPoint = new Point<>();
        integerPoint.setX(3);
        integerPoint.setY(5);
        System.out.println(integerPoint.getX()+"------"+integerPoint.getY());

        Point<String> stringPoint = new Point<>();
        stringPoint.setX("zhangsan");
        stringPoint.setY("lisi");
        System.out.println(stringPoint.getX()+"-------------"+stringPoint.getY());
    }
}
